//
//  DDTopic.h
//  dingdang
//
//  Created by 阮 沧晖 on 15/6/28.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSONModel.h"


@protocol DDTopicQuestionOptionContent <NSObject>
@end
@interface DDTopicQuestionOptionContent : JSONModel
@property(nonatomic,strong)NSArray<Optional> *description;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *labels;
@property(nonatomic,strong)NSString<Optional> *text;
@property(nonatomic,strong)NSString<Optional>*title;
@property(nonatomic,strong)NSString<Optional>*type;
@property(nonatomic,strong)NSString<Optional>*url;
@end

@protocol DDTopicQuestionOption <NSObject>
@end
@interface DDTopicQuestionOption : JSONModel
@property(nonatomic,strong)NSArray<Optional,DDTopicQuestionOptionContent> *content;
@property(nonatomic,strong)NSString<Optional> *currect;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *label;
@end

@protocol DDTopicQuestionExplanation <NSObject>
@end
@interface DDTopicQuestionExplanation : JSONModel
@property(nonatomic,strong)NSArray<Optional> *description;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *labels;
@property(nonatomic,strong)NSString<Optional> *text;
@property(nonatomic,strong)NSString<Optional>*title;
@property(nonatomic,strong)NSString<Optional>*type;
@property(nonatomic,strong)NSString<Optional>*url;
@end

@protocol DDTopicQuestionBody <NSObject>
@end
@interface DDTopicQuestionBody : JSONModel
@property(nonatomic,strong)NSString<Optional> *description_str;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *labels;
@property(nonatomic,strong)NSString<Optional> *text;
@property(nonatomic,strong)NSString<Optional> *title;
@property(nonatomic,strong)NSString<Optional> *type;
@property(nonatomic,strong)NSString<Optional> *url;
@end

@protocol DDTopicQuestion <NSObject>
@end
@interface DDTopicQuestion : JSONModel
@property(nonatomic,strong)NSString<Optional> *answer;
@property(nonatomic,strong)NSString<Optional> *arrangment;
@property(nonatomic,strong)NSArray<DDTopicQuestionBody,Optional> *body;
@property(nonatomic,strong)NSString<Optional> *course;
@property(nonatomic,strong)NSString<Optional> *courseName;
@property(nonatomic,strong)NSString<Optional> *createTime;
@property(nonatomic,strong)NSString<Optional> *emptyOption;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSArray<Optional,DDTopicQuestionOption> *options;
@property(nonatomic,strong)NSString<Optional> *orderIndex;
@property(nonatomic,strong)NSString<Optional> *seconds;
@property(nonatomic,strong)NSString<Optional> *subjective;
@property(nonatomic,strong)NSString<Optional> *tip;
@property(nonatomic,strong)NSString<Optional> *type;
@property(nonatomic,strong)NSString<Optional> *typeName;
@property(nonatomic,strong)NSString<Optional> *uid;
@property(nonatomic,strong)NSArray<Optional,DDTopicQuestionExplanation> *explanation;
@end

@protocol DDTopicDataCellModel <NSObject>
@end
@interface DDTopicDataCellModel : JSONModel
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *uid;
@property(nonatomic,strong)NSString<Optional> *userName;
@property(nonatomic,strong)NSString<Optional> *nickName;
@property(nonatomic,strong)NSString<Optional> *userAvatarUrl;
@property(nonatomic,strong)NSString<Optional> *type;
@property(nonatomic,strong)NSString<Optional> *title;
@property(nonatomic,strong)NSString<Optional> *password;
@property(nonatomic,strong)NSString<Optional> *reward;
@property(nonatomic,strong)NSString<Optional> *typeName;
@property(nonatomic,strong)NSString<Optional> *maxRewardNumber;
@property(nonatomic,strong)NSString<Optional> *seconds;
@property(nonatomic,strong)NSString<Optional> *showAnswer;
@property(nonatomic,strong)NSString<Optional> *answerNumber;
@property(nonatomic,strong)NSString<Optional> *answered;
@property(nonatomic,strong)NSString<Optional> *courseName;
@property(nonatomic,strong)NSString<Optional> *solved;
@property(nonatomic,strong)NSString<Optional> *markResult;
@property(nonatomic,strong)NSString<Optional> *createTime;
@property(nonatomic,strong)NSString<Optional> *startTime;
@property(nonatomic,strong)NSArray<Optional,DDTopicQuestion> *questions;
@end

@interface DDTopic : JSONModel
@property (nonatomic,strong)NSArray<DDTopicDataCellModel> *list;
@end
